<?php include('includes/before_html.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

    <head>

        <meta http-equiv="content-type" content="text/html; charset=utf-8" />

        <meta name="description" content="" />

        <meta name="keywords" content="" />

        <meta name="author" content="" />

        <?php include('includes/head.php'); ?>

        <title><?php echo $heading ?></title>

    </head>

    <body>

        <div id="wrapper">

            <?php include('includes/header.php'); ?>

            <?php include('includes/nav.php'); ?>

            <div id="content">
                You are not friends with this user.<BR><BR>
                        <?php
                        echo "<a href='request_friend.php?rid=" . $_GET['rid'] . "'>Send Friend Request</a><br/><br/><br/>";
                        echo "<h3>Mutual Friends</h3><br>";
                        $sql = "SELECT U.FirstName, U.LastName, U.RUID FROM Users U, Friends F1, Friends F2 WHERE F1.Person1=$myRuid AND F2.Person1={$_GET['rid']} AND F1.Person2=F2.Person2 AND F1.Person2<>{$_GET['rid']} AND F2.Person2<>$myRuid AND F1.Status='Accepted' AND F2.Status='Accepted' AND F1.Person2=U.RUID";
                        outputQueryResults($sql);
                        
                        echo "<br><br>SQL Query: ".$sql;
                        ?>
                        </div> <!-- end #content -->

                        <?php include('includes/sidebar.php'); ?>

                        <?php include('includes/footer.php'); ?>

                        </div> <!-- End #wrapper -->

                        </body>

                        </html>